package com.jz.cash.client.service.impl;

import com.jz.cash.client.dao.FunctionConfigDao;
import com.jz.cash.client.entity.FunctionConfig;
import com.jz.cash.client.service.FunctionConfigService;
import com.stip.mybatis.generator.plugin.BaseExample;
import com.stip.mybatis.generator.plugin.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FunctionConfigServiceImpl extends BaseService<FunctionConfig, BaseExample, Long> implements FunctionConfigService {

    @Autowired
    private FunctionConfigDao functionConfigDao;

    @Override
    public List<FunctionConfig> findAllFuncsByUserId(Long id) {

        FunctionConfig functionConfig = functionConfigDao.selectByPrimaryKey(1l);

        return functionConfigDao.findFuncsByUserId(id);
    }
}